package de.karlNet.sambamanager.trees;


import org.primefaces.event.NodeUnselectEvent;
import org.primefaces.model.DefaultTreeNode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ldap.core.LdapTemplate;
import org.springframework.stereotype.Controller;

import de.karlNet.sambamanager.ldapController.AbstractLdapTree;
import de.karlNet.sambamanager.ldapController.OriginalLdapTree;
import de.karlNet.sambamanager.ldapModel.LdapObject;
import de.karlNet.sambamanager.view.beans.ManualLeafHandlingTreeNode;

@Controller
public class LdapTreeBean extends AbstractTreeBean {
	@Autowired
	private OriginalLdapTree ldapTree;
	
	public LdapTreeBean() {
		root = new ManualLeafHandlingTreeNode(new LdapObject("example.com",
				"dc=example,dc=com"), null);
		DefaultTreeNode myRoot = new ManualLeafHandlingTreeNode(new LdapObject(
				"example.com", "dc=example,dc=com"), root);

		System.out.println("constructed");
	}

	@Override
	protected AbstractLdapTree getLdapTree() {
		return ldapTree;
	}

}
